@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';

body {
  height: 100%;
  background-color: $bg;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

/*定义滚动条高宽及背景 高宽分别对应横竖滚动条的尺寸*/
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

/*定义滚动条轨道*/
::-webkit-scrollbar-track {
  background-color: transparent;
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  border-radius: 8px;
}

/*定义滑块 内阴影+圆角*/
::-webkit-scrollbar-thumb {
  background-color: $border;
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  border-radius: 8px;
  border-color: $border;
  border-width: 4px;
  border-style: solid;
  background-clip: padding-box;
  &:hover {
    background-color: $menuActiveText;
    border-color: $menuActiveText;
  }
}

// main-container global css
.app-container {
  padding: 20px;
}
.app-main > .app-container {
  background: $white;
}

.box {
  position: relative;
  height: 100%;
  border-radius: 4px;
  font-size: $const;
  padding: $const;
  overflow: auto;
  //todo 内部DOM不展示的时候padding的设置
}
.box-wrapper {
  padding: $const - 8;
  border-radius: $borderRadius;
  background-color: $white;
}
.box-wrapper + .box-wrapper {
  margin-top: $const + 2;
}
.box-wrapper.box-pagination {
  text-align: right;
}